(function() {
  require.config({
    baseUrl: '/assets/static/',
    urlArgs: "_v=1.0" + Math.random(),
    paths: {
      'jquery': 'libs/jquery.min',
      'controller': 'js/controller',
      'model': 'js/model',
      'view': 'js/view'
    }
  });

  require(['jquery'], function($) {
    return $('script[data-controller]').each(function() {
      var cname, module;
      module = this.getAttribute('data-controller');
      cname = 'js/controller/' + module + '';
      return require([cname], function(controller) {
        var app;
        return app = new controller;
      });
    });
  });

}).call(this);
